Optimal. Leaf size=38 \[ \frac {a \sin (c+d x)}{d}+\frac {b \sin (c+d x) \cos (c+d x)}{2 d}+\frac {b x}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.059, Rules used = {2734} \[ \frac {a \sin (c+d x)}{d}+\frac {b \sin (c+d x) \cos (c+d x)}{2 d}+\frac {b x}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2734
Rubi steps
\begin {align*} \int \cos (c+d x) (a+b \cos (c+d x)) \, dx &=\frac {b x}{2}+\frac {a \sin (c+d x)}{d}+\frac {b \cos (c+d x) \sin (c+d x)}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 35, normalized size = 0.92 \[ \frac {4 a \sin (c+d x)+b (2 (c+d x)+\sin (2 (c+d x)))}{4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.90, size = 29, normalized size = 0.76 \[ \frac {b d x + {\left (b \cos \left (d x + c\right ) + 2 \, a\right )} \sin \left (d x + c\right )}{2 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.43, size = 31, normalized size = 0.82 \[ \frac {1}{2} \, b x + \frac {b \sin \left (2 \, d x + 2 \, c\right )}{4 \, d} + \frac {a \sin \left (d x + c\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 38, normalized size = 1.00 \[ \frac {b \left (\frac {\cos \left (d x +c \right ) \sin \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )+\sin \left (d x +c \right ) a}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.65, size = 34, normalized size = 0.89 \[ \frac {{\left (2 \, d x + 2 \, c + \sin \left (2 \, d x + 2 \, c\right )\right )} b + 4 \, a \sin \left (d x + c\right )}{4 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.52, size = 31, normalized size = 0.82 \[ \frac {b\,x}{2}+\frac {b\,\sin \left (2\,c+2\,d\,x\right )}{4\,d}+\frac {a\,\sin \left (c+d\,x\right )}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.20, size = 66, normalized size = 1.74 \[ \begin {cases} \frac {a \sin {\left (c + d x \right )}}{d} + \frac {b x \sin ^{2}{\left (c + d x \right )}}{2} + \frac {b x \cos ^{2}{\left (c + d x \right )}}{2} + \frac {b \sin {\left (c + d x \right )} \cos {\left (c + d x \right )}}{2 d} & \text {for}\: d \neq 0 \\x \left (a + b \cos {\relax (c )}\right ) \cos {\relax (c )} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________